import request from '@/utils/request'

// 查询设备报修列表
export function list(pageSize,pageNum) {
  const data = {
      pageSize,
      pageNum,
  }
  return request({
    url: '/facility/facilityRepairs/list',
    method: 'get',
    params: data
  })
}

// 新增设备报修
export function add(data) {
  
  return request({
    url: '/facility/facilityRepairs',
    method: 'post',
    params: data
  })
}
  // 删除设备报修
export function del(id) {
  return request({
    url: '/facility/facilityRepairs/'+id,
    method: 'DELETE',
  })
}
// 修改设备报修
export function update(data) {

  return request({
      url: '/facility/facilityRepairs',
      method: 'put',
      params: data
  })
  }
// 查询设备报修详情
export function deviceRepair(id) {
  return request({
    url: '/facility/facilityRepairs/'+id,
    method: 'get',
  })
}

// 查询优惠券详情
export function inquire(data) {
  return request({
      url: '/facility/facilityRepairs/list',
      method: 'get',
      params: data
  })
}